package com.cgsd.heyu.http;

import androidx.annotation.Nullable;

/**
 * Description :
 * @Author : shaohua
 * 时间：2019/11/20 17
 * 邮箱：only_dream136@sina.com
 */
public class AnalysisErrorException extends RuntimeException {

    private int code;
    private String message;
    private Object body;

    public AnalysisErrorException(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public AnalysisErrorException(int code, String message,Object body) {
        this.code = code;
        this.message = message;
        this.body = body;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Nullable
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }
}
